/* 
 *      TokenEnum.java
 *
 *      Copyright 2008 Pablo Nicolas Diaz Bilotto <pablonicolas.diaz@gmail.com>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */
package lexer.token;

import parser.ParserTokens;


/**
 * The Enum TokenEnum.
 */
public enum TokenEnum implements ParserTokens {

	/** The EOF. */
	EOF(-1),

	/** The LITERAL. */
	LITERAL(300),

	/** The ERROR. */
	ERROR(ParserTokens.ERROR),

	/** The IDENTIFIER. */
	IDENTIFIER(ParserTokens.IDENTIFIER),

	/** The CONSTANT. */
	CONSTANT(ParserTokens.CONSTANT),

	/** The ELSE. */
	ELSE(ParserTokens.ELSE),

	/** The IF. */
	IF(ParserTokens.IF),

	/** The INT. */
	INT(ParserTokens.INT),

	/** The PRINT. */
	PRINT(ParserTokens.PRINT),

	/** The T o_ double. */
	TO_DOUBLE(ParserTokens.TO_DOUBLE),

	/** The DOUBLE. */
	DOUBLE(ParserTokens.DOUBLE),

	/** The T o_ int. */
	TO_INT(ParserTokens.TO_INT),

	/** The DO. */
	DO(ParserTokens.DO),

	/** The UNTIL. */
	UNTIL(ParserTokens.UNTIL),

	/** The GREATE r_ equal. */
	GREATER_EQUAL(ParserTokens.GREATER_EQUAL),

	/** The GREATER. */
	GREATER(ParserTokens.GREATER),

	/** The LES s_ equal. */
	LESS_EQUAL(ParserTokens.LESS_EQUAL),

	/** The LESS. */
	LESS(ParserTokens.LESS),

	/** The EQUAL. */
	EQUAL(ParserTokens.EQUAL),

	/** The NO t_ equal. */
	NOT_EQUAL(ParserTokens.NOT_EQUAL),

	/** The STRING. */
	STRING(ParserTokens.STRING);

	/** The val. */
	private int val;

	/**
	 * Instantiates a new token enum.
	 * 
	 * @param Value the value
	 */
	private TokenEnum(int Value) {
		this.val = Value;
	}

	/**
	 * Ret value.
	 * 
	 * @return the int
	 */
	public int retValue() {
		return val;
	}

}
